﻿using Application.AppService.IConfig;
using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Engage_major_releaseAppService: IEngage_major_releaseAppService
    {
        private readonly IEngage_major_releaseRepository emrRepository;

        public Engage_major_releaseAppService(IEngage_major_releaseRepository emrRepository)
        {
            this.emrRepository = emrRepository;
        }
        //添加
        public Task<int> AddEMRAsync(Engage_major_release emr)
        {
           return emrRepository.AddEMRAsync(emr);
        }
        //删除
        public Task<int> DeleteEMRAsync(int Id)
        {
            return emrRepository.DeleteEMRAsync(Id);
        }
        //查询
        public Task<int> GetCount()
        {
            return emrRepository.GetCount();
        }

        //修改
        public Task<int> UpdateEMRAsync(Engage_major_release emr)
        {
            return emrRepository.UpdateEMRAsync(emr);
        }

        public Task<List<Engage_major_release>> GetEMR()
        {
            return emrRepository.GetEMR();
        }

        public Task<List<Engage_major_release>> GetList(int page, int pageSize)
        {
           return emrRepository.GetList(page,pageSize);
        }
       
    }
}
